package com.huatai.datacenter.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huatai.datacenter.entity.TbQualityRunLogEntity;
import com.huatai.datacenter.mapper.TbQualityRunLogMapper;
import com.huatai.datacenter.service.TbQualityRunLogService;
import org.springframework.stereotype.Service;

@Service
public class TbQualityRunLogServiceImpl extends ServiceImpl<TbQualityRunLogMapper, TbQualityRunLogEntity> implements TbQualityRunLogService {
    @Override
    public Page<TbQualityRunLogEntity> dataList(String requestId, int pageNum, int pageSize) {
        QueryWrapper<TbQualityRunLogEntity> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("requestId", requestId);
        Page<TbQualityRunLogEntity> page = new Page<>(pageNum, pageSize);
        return this.page(page, queryWrapper);
    }
}
